package kjoms.udcs;

import java.util.List;

import kjoms.udcs.bean.OrgUnitBean;
import kjoms.udcs.invoke.OpenService;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ClientTest {

	public static void main(String[] args) {

		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("app-client.xml");
		OpenService service = (OpenService) applicationContext.getBean("openService");
		List<OrgUnitBean> units = service.getTopOrgUnitList();
		System.out.println(units.size());
		
		String token = service.login("gly", "222222");
		
		
		
		System.out.println("token = " + token);
	}

}
